package com.isoftstone.merchant.service.role;

import com.isoftstone.common.Page;
import com.isoftstone.merchant.entity.role.PRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IPRoleService {
    PRole getRoleById(String roleId)throws Exception;

    PRole getRoleByCode(String roleCode)throws Exception;

    List<PRole> getRolelistPage(Page page) throws Exception;

    List<PRole> getRole() throws Exception;

    public void saveRole(PRole pRole)throws Exception;

    public void updateRole(PRole pRole)throws Exception;

    /**批量删除
     * @param roleId
     * @throws Exception
     */
    public void deleteRole(Integer roleId)throws Exception;

    /**
     * 根据comCode查询sysRole
     *
     */
    List<PRole> getSysRole(@Param("comCode") String comCode) throws Exception;

    List<PRole> getCompanyRoles(String empCode,String comCode) throws Exception;
}
